#ifndef __LOCK_H__
#define __LOCK_H__


#ifdef _WIN32
#include "win_type.h"
typedef struct {
	void* lock;
}lock_t;
#else
#include <pthread.h>
typedef struct {
	pthread_mutex_t lock;
}lock_t;
#endif

void lock_init(lock_t *);
void lock(lock_t *);
void unlock(lock_t *);
void lock_destroy(lock_t *);

#endif //__LOCK_H__


